//index.js
//获取应用实例
const app = getApp();
var pages = require('index_a.js');
var yyy = require('index_b.js');
Page({
  data: {
    goods: [],
    yf: [],
    motto: 'Hello World',
    userInfo: {},
    hasUserInfo: false,
    canIUse: wx.canIUse('button.open-type.getUserInfo'),
    imgUrls: [
      'http://img.zhichiwangluo.com/zcimgdir/album/file_565a78ed064e1.jpg',
      'http://img.zhichiwangluo.com/zcimgdir/album/file_565a78ec59c71.jpg',
      'http://img.zhichiwangluo.com/zcimgdir/album/file_565a78ea79a69.jpg'
    ],
    indicatorDots: true,
    autoplay: true,
    interval: 2000,
    duration: 1000
  },
  //事件处理函数
  go_to_mess (e) {
    var uu = e.currentTarget.dataset.id
    wx.navigateTo({
      url: '/pages/path/path?id='+uu
    })
  },

  onLoad: function (options) {
    this.setData({ goods: pages.bbb})
    this.setData({ yf: yyy.aaa })

  },

})
